﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Site_Default" %>
<%@ Register src="Menu.ascx" tagname="Menu" tagprefix="uc" %>
<%@ Register src="Header.ascx" tagname="Header" tagprefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="phActions" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phSubMenu" Runat="Server">
    <uc:Menu ID="ucMenu" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <uc:Header ID="ucHeader" runat="server" />
    <div class="tabPage">
        <div class="actions">
            <asp:LinkButton ID="btnEdit" CssClass="edit" Text="Edit" runat="server" />
            <asp:LinkButton ID="btnSave" CssClass="save" Text="Save" Visible="false" runat="server" />
            <asp:LinkButton ID="btnCancel" CssClass="cancel" Text="Cancel" Visible="false" runat="server" />
        </div>
        <asp:DetailsView ID="dvSite" DataSourceID="dsSite" DataKeyNames="Id, ConcurencyId" AutoGenerateRows="false" runat="server">
            <Fields>
                <acms:TextBoxField DataField="Name" HeaderText="Site Name" Required="true" />
                <acms:TextBoxField DataField="Root" HeaderText="Site Root" Width="350px" Required="true" />
            </Fields>
        </asp:DetailsView>
        <div class="itemPanel">
            <h4>Other Mappings</h4>
            <div class="actions">
                <asp:LinkButton id="btnInsert" CssClass="add" Text="Insert New Mapping" runat="server"/>
            </div>
            <telerik:RadGrid ID="dvMappings" SkinID="InlineEdit" AllowAutomaticUpdates="true" AllowAutomaticInserts="true" AllowAutomaticDeletes="true" DataSourceID="dsMappings" AutoGenerateColumns="false" runat="server">
                <MasterTableView InsertItemDisplay="Top" DataKeyNames="Id, ConcurencyId">
                    <Columns>
                        <acms:RadGridTextBoxColumn DataField="MappingName" HeaderText="Root" Width="350px" Required="true" />
                        <acms:RadGridEditColumn />
                        <acms:RadGridDeleteColumn />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </div>
    </div>
    <acms:SiteDataSource ID="dsSite" runat="server" />
    <acms:SiteMappingDataSource ID="dsMappings" runat="server" />
</asp:Content>

